﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Owin.Cors;
using Owin;

namespace WanMeiService
{
    class Startup
    {
        public void Configuration(IAppBuilder app)
        {
            app.Map("/signalr",
              map =>
              {
                  //允许跨域
                  map.UseCors(CorsOptions.AllowAll);
                  map.RunSignalR();
              }
          );
        }
       
    }
}
